Each enum class also has a values() function that returns a collection of the constants that you can iterate over, such as in a for loop.

You can learn more about this in:
Run Edit